package com.systemmanger.mapper;

import com.bean.WmsTPermission;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface QuanXianGuanLiMapper {
    @Select("<script>" +
            "select * from wms_t_permission " +
            "where permIsDel = 0" +
            " <if test=\"permID !=null and permID != ''\" >" +
            "and permID =#{permID}" +
            "</if>" +
            "<if test=\" permName !=null and permName !=''\" >" +
            "and permName =#{permName}" +
            "</if>" +
            "</script>")
    public List<WmsTPermission> getPage(WmsTPermission wmsTPermission);


    @Delete("delete FROM wms_t_perm_group WHERE permID=#{permID}")
    public  void deleteGroup(String permID);
    @Delete("delete FROM wms_t_permission WHERE permID=#{permID}")
    public  void deletePromission(String permID);

}
